﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Sealight.Core.Domain
{
   public class RelatedProductEntity:BaseEntity
    {
        /// <summary>
        /// Gets or sets the related product identifier
        /// </summary>
        public virtual Guid RelatedProductID { get; set; }

        /// <summary>
        /// Gets or sets the first product identifier
        /// </summary>
        public virtual ProductEntity Product1 { get; set; }

        /// <summary>
        /// Gets or sets the second product identifier
        /// </summary>
        public virtual ProductEntity Product2 { get; set; }

        /// <summary>
        /// Gets or sets the display order
        /// </summary>
        public virtual int DisplayOrder { get; set; }
        public virtual Sealight.Core.DataAdapter.related_product ToDataAdapter()
        {
            return new DataAdapter.related_product { id=this.RelatedProductID, display_order = this.DisplayOrder, product1=this.Product1.ToDataAdapter(), product2 = this.Product2.ToDataAdapter()};
        }
    }
}
